home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10990 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  721 b 

  1. Path: in2.uu.net!usc!usenet
  2. From: Kriang Lerdsuwanakij <lerdsuwa@scf.usc.edu>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Caught in a loop.
  5. Date: 12 Mar 1996 01:39:55 GMT
  6. Organization: University of Southern California
  7. Sender: lerdsuwa@sal-sun64.usc.edu
  8. Message-ID: <4i2klb$98t@usc.edu>
  9. References: <4i2b69$201@gateway.i2020.net>
  10. NNTP-Posting-Host: sal-sun64.usc.edu
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset=us-ascii
  13. Content-Transfer-Encoding: 7bit
  14. X-Mailer: Mozilla 1.12 (X11; I; SunOS 4.1.4-PL sun4m)
  15. X-URL: news:4i2b69$201@gateway.i2020.net
  16.  
  17. When enter is pressed, ch equals 13.  So you have to change the while
  18. statements to   while (eof!=13)
  19. and change both if (eof)  to   if (eof!=13).
  20.  
  21. Kriang Lerdsuwanakij
  22.  
  23.